package microservicedemo.userclient.Client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import microservicedemo.userclient.model.User;

@FeignClient(name="user-service",fallback = UserServiceFallback.class)
public interface UserServiceClient {

    @PostMapping("/login")
    String login(@RequestBody User user);

    @PostMapping("/register")
    boolean register(@RequestBody User user);
}
